All Packages Class Hierarchy This Package Previous Next Index
Class com.apple.alpha.core.Point
java.lang.Object
|
+----com.apple.alpha.core.Point
- public class Point
- extends Object
This class is used to represent a two-dimensional point.
-
x
- The x-coordinate of the point.
-
y
- The y-coordinate of the point.
-
ZeroPoint
- A Point defining the origin.
-
Point()
- Create a Point whose coordinates are (0, 0).
-
Point(float, float)
- Create a Point with the given coordinates.
-
toString()
- Return a textual representation of the receiver.
x
public float x
- The x-coordinate of the point.
y
public float y
- The y-coordinate of the point.
ZeroPoint
public static final Point ZeroPoint
- A Point defining the origin.
Point
public Point()
- Create a Point whose coordinates are (0, 0).
Point
public Point(float u,
float v)
- Create a Point with the given coordinates.
- Parameters:
- u - the x-coordinate of the new point.
- v - the y-coordinate of the new point.
toString
public String toString()
- Return a textual representation of the receiver. A point with
coordinates (3, -7) will be represented as the string
"{x = 3; y = -7}"
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index